<template>
  <div>
    <Title>关于我们</Title>
    <div v-for="item in items" :key="item.id">{{ item.bidName }}</div>
     <div>{{name}}</div>
  </div>
</template>
<script setup lang="js">
import {onMounted} from "vue";
const name=ref("111")

console.info("aaa")
import { get } from '~/utils/request'; // 导入封装的 Axios 请求工具
// 使用全局注入的 get 和 post 方法
const {  $get } = useNuxtApp();
const items=ref([])

let tenant= useNuxtApp().ssrContext.event.context.tenant;

console.info(tenant)



let res2=await $get("/boxFront/bidInformation/searchBid",{page:1,rows:2});
if (res2.code===200){
  items.value=res2.data;
}

if (process.client) {
  onMounted(async ()=>{
    name.value="dfsdfds"
  })
}
</script>
<style scoped>

</style>
